package pro.shushi.pamirs.demo.api.model.relation;

import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.BaseRelation;
import pro.shushi.pamirs.meta.enmu.NullableBoolEnum;

@Model(displayName = "房类型和票类型关系")
@Model.model(RoomRelTicket.MODEL_MODEL)
@Model.Advanced(relationship = NullableBoolEnum.TRUE, unique = {"roomTypeId,ticketTypeId"})
public class RoomRelTicket extends BaseRelation {

    public final static String MODEL_MODEL = "demo.RoomRelTicket";

    @Field(displayName = "房类型ID", required = true)
    private Long roomTypeId;

    @Field(displayName = "票类型ID", required = true)
    private Long ticketTypeId;

}
